package com.sgb.kjwl.api.service;

import com.sgb.kjwl.model.entity.BannerEntity;
import com.sgb.kjwl.model.entity.InquiryCenterEntity;
import com.sgb.kjwl.model.entity.MaterialMenuEntity;
import com.swgk.core.view.entity.MenuEntity;
import com.swgk.core.base.model.entity.BaseEntity;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * 招采首页接口
 */
public interface RecruitmentHomeAPI {

    //Banner图片
    @POST("v1/app/recruitNew/bannerList")
    Call<BaseEntity<List<BannerEntity>>> getBanner();

    //菜单
    @POST("v1/app/recruitNew/categoryItems")
    Call<BaseEntity<List<MenuEntity>>> getCategory();

    //询价中心类别
    @POST("v1/app/recruitNew/inquiryCenterCate")
    Call<BaseEntity<List<MaterialMenuEntity>>> getInquiryCenter();

    //询价中心列表
    @POST("v1/app/recruitNew/inquiryCenterList")
    Call<BaseEntity<List<InquiryCenterEntity>>> getInquiryCenterList(@Query("code") String code,@Query("areaCode") String areaCode);

}